import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import router from './router/index'
import store from './store/index'
import './api/mock'
import http from './utils/request';
import { Message } from 'element-ui';
import  errorHandle  from '@/utils/errorHandler';
import {GlobalMixin} from "@/minix/globalMixin";
Vue.config.errorHandler = errorHandle;
Vue.config.productionTip = false
Vue.use(ElementUI)
// 将 http 挂载到 Vue 原型上
Vue.prototype.$http = http;
// 全局错误捕获
// 注册全局混入
Vue.mixin(GlobalMixin)
new Vue({
    router,
    store,
    render: h => h(App),
    created() {
        // store.commit('addMenu', router)
    }
}).$mount('#app')